package com.hps.demo.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hps.demo.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hps.demo.vo.OrderDetailVO;
import com.hps.demo.vo.OrderInfoVO;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author heps
 * @since 2020-10-27
 */
public interface OrderMapper extends BaseMapper<Order> {

  Page<OrderInfoVO> queryOrderByPage(Page<OrderInfoVO> page);

  List<OrderInfoVO> getOrderInfoByUserId(Long userId);

  Page<OrderDetailVO> getOrderDetailPage(Page<OrderDetailVO> page);
}
